import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { HOST, PORT } from './src/api/service'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/api': {
        target: `${HOST}:${PORT}/`,
        changeOrigin: true
      }
    }
  }
})
